<!DOCTYPE html>
<html>
<head>
    <title>{$eju.field.seo_title}</title>
    <meta name="renderer" content="webkit" />
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=0,minimal-ui" />
    <meta name="description" content="{$eju.field.seo_description}" />
    <meta name="keywords" content="{$eju.field.seo_keywords}" />
    <link href="{eju:global name='web_cmspath' /}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    {eju:static file="skin/css/iconfont.css" /}
    {eju:static file="skin/css/amazeui.min.css" /}
    {eju:static file="skin/css/aflist.css" /}
    {eju:static file="skin/css/mobile2.css" /}

    {eju:static file="skin/js/jquery.min.js" /}
    {eju:static file="skin/js/amazeui.min.js" /}
    {eju:static file="skin/js/iscroll.js" /}
    {eju:static file="skin/js/swiper-3.4.2.jquery.min.js" /}
    {eju:static file="skin/js/amazeui.lazyload.min.js" /}
    {eju:static file="skin/layer/layer.min.js" /}
</head>
<style>
    .input-text{
        border: 1px #CCC solid;
        font-size: 1.45rem;
        float: left;
        width: 100%;
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
        border-radius: 5px;
        line-height: 3rem;
        height: 3rem;
        padding: 5px;
    }
</style>
<body>
{eju:include file="header.htm"/}
<div data-am-widget="slider" class="detail-banner am-slider am-slider-a1" data-am-slider='{"directionNav":false,"controlNav":false}'
     style="margin-top: 0;">
    <ul class="am-slides">
        {eju:volist name="$eju.field.photo_list" id="vo"}
        <li class="newhouse-banner">
            <a href="javascript:;">
                <img src="{$vo.photo_pic}">
            </a>
            <div class="pet_slider_shadow"></div>
        </li>
        {/eju:volist}
    </ul>
</div>
<div class="lp-detail-intr">
    <h2>{$eju.field.title}</h2>
    <ul>
        <li>
            <span class="intr-title-jg">
            <em> {$eju.field.total_price}{$eju.field.total_price_unit}</em>
            <a class="jj_callme" data-text="价格变动第一时间通知您。" href="#" data-am-modal="{target:'#af-user-yy'}">
                (<i class="iconfont icon-jiangjia"></i>降价通知)</a>
            </span>
        </li>
        <li><span>小区：</span> {eju:notempty name="$eju.field.xiaoqu.title"}{$eju.field.xiaoqu.title}{eju:else /}暂无数据{/eju:notempty} </li>
        <li><span>地址：</span>{$eju.field.address}</li>

    </ul>
    <div class="agent_info">
        {notempty name="$eju.field.saleman"}
        <span><img src="{$eju.field.saleman.saleman_pic}" width="40" height="40" alt="{$eju.field.saleman.saleman_name}"></span>
        {else /}
        <span><img src="{eju:global name='web_templets_pc' /}/skin/images/bag-imgB.jpg" width="40" height="40" alt="头像"></span>
        {/notempty}
        {$eju.field.sale_name}
        <span><a href="tel:{$eju.field.sale_phone}">{$eju.field.sale_phone}{notempty name="$eju.field.phone_code"}转{$eju.field.phone_code}{/notempty}</a></span>
        <a class="tg_jj" data-text="24小时接送机，住宿安排，专车看房，全程免费" data-am-modal="{target:'#af-user-yy'}" href="#">预约看房</a>
    </div>
</div>
<div class="lp-detail-info">
    <h3> <a href="#" class="af-head"> <span class="left">房源概况</span>
        <div class="clear"></div>
    </a> </h3>
    <ul class="detail-info-list2 ">
        <li> <span>
						<lable>房屋户型：</lable>{$eju.field.room}室{$eju.field.living_room}厅{$eju.field.toilet}卫
					</span><span>
						<lable>产权年限：</lable>{eju:notempty name="$eju.field.property"}{$eju.field.property}{$eju.field.property_unit}{eju:else /}暂无数据{/eju:notempty}
					</span></li>
        <li> <span>
						<lable>建筑面积：</lable>{eju:notempty name="$eju.field.area"}{$eju.field.area}{$eju.field.area_unit}{eju:else /}暂无数据{/eju:notempty}
					</span><span>
						<lable>绿化率：</lable>{eju:notempty name="$eju.field.xiaoqu.greening_rate"}{$eju.field.xiaoqu.greening_rate}{$eju.field.xiaoqu.greening_rate_unit}{eju:else /}暂无数据{/eju:notempty}
					</span></li>
        <li> <span>
						<lable>容积率：</lable>{eju:notempty name="$eju.field.xiaoqu.plot_ratio"}{$eju.field.xiaoqu.plot_ratio}{$eju.field.xiaoqu.plot_ratio_unit}{eju:else /}暂无数据{/eju:notempty}
					</span><span>
						<lable>停车位：</lable>{eju:notempty name="$eju.field.xiaoqu.carport"}{$eju.field.xiaoqu.carport}{$eju.field.xiaoqu.carport_unit}{eju:else /}暂无数据{/eju:notempty}
					</span></li>
        <li> <span>
						<lable>小区户数：</lable>{eju:notempty name="$eju.field.xiaoqu.households"}{$eju.field.xiaoqu.households}{$eju.field.xiaoqu.households_unit}{eju:else /}暂无数据{/eju:notempty}
					</span><span>
						<lable>物业费：</lable>{eju:notempty name="$eju.field.xiaoqu.property_fee"}{$eju.field.xiaoqu.property_fee}{$eju.field.xiaoqu.property_fee_unit}{eju:else /}暂无数据{/eju:notempty}
					</span></li>
        <li> <span>
						<lable>建造年代：</lable>{eju:notempty name="$eju.field.building_age"}{$eju.field.building_age}{$eju.field.building_age_unit}{eju:else /}暂无数据{/eju:notempty}
					</span><span>
						<lable>物业类型：</lable>{eju:notempty name="$eju.field.manage_type"}{$eju.field.manage_type}{$eju.field.manage_type_unit}{eju:else /}暂无数据{/eju:notempty}
					</span> </li>
        <li>
            <lable>开发商：</lable>{eju:notempty name="$eju.field.xiaoqu.developer"}{$eju.field.xiaoqu.developer}{eju:else /}暂无数据{/eju:notempty}
        </li>
        <li>
            <lable>物业公司:</lable>{eju:notempty name="$eju.field.xiaoqu.manage_company"}{$eju.field.xiaoqu.manage_company}{eju:else /}暂无数据{/eju:notempty}
        </li>

    </ul>
</div>
<div class="lp-detail-info">
    <h3> <a href="javascript:;" class="af-head"> <span class="left">房屋配套</span>
        <div class="clear"></div>
    </a> </h3>
    <ul class="house-confi-point2">
        {eju:volist name="$eju.field.supporting" id="vo"}
        <li >
            <div class="ico_img">
                <img src="{$vo|get_supporting_icon=###}" alt="">
            </div>
            <p>{$vo}</p>
        </li>
        {/eju:volist}


    </ul>
</div>
<div class="lp-detail-info">
    <h3> <a href="#" class="af-head"> <span class="left">房源介绍</span>
        <div class="clear"></div>
    </a> </h3>
    <div class="detail-jieshao">
        <p>{$eju.field.content}</p>
    </div>
</div>
<div class="lp-detail-huxing">
    <h3> <a href="" class="af-head"> <span class="left">房源相册</span>
        <div class="clear"></div>
    </a> </h3>
    <ul class="ershou-pic af-hixing-list">
        {eju:fanglist name="$eju.field.photo_list" id="field"}
        <li style="display: flex;">
            <a href="{$field.photo_id|nextarcurl=###,$eju.field,'photo'}">
                <img src="{$field.photo_pic}" class="huxinglist-img" alt="{$field.photo_title}">
                <span>{$field.photo_title}</span>
            </a>
        </li>
        {/eju:fanglist}
    </ul>
    <div class="clear"></div>
    <a href="javascript:void(0)" class="hx_more_btn">查看更多图片</a>
</div>
<li class="list_gg lp-detail-dt">
    <a href="tel:{$eju.field.saleman.saleman_mobile}">
        <img src="{eju:global name='web_templets_mobile' /}/skin/images/house-list_tjf.png">
    </a>

</li>
<div class="lp-detail-map">
    <h3 id="diyurl_off" style="display: none">
        <a href="javascript:;" class="af-head">
            <span class="left">周边配套</span>
            <div class="clear"></div>
        </a>
    </h3>
    <h3 id="diyurl_on"  style="display: none">
        <a href="{eju:diyurl type='panorama' /}" class="af-head">
            <span class="left">周边配套</span>
            <span class="right">全景地图</span>
            <div class="clear"></div>
        </a>
    </h3>

    <div class="detail-map-wrap">
        <div id="map_canvas" style="width:100%;height: 300px;"></div>
        {eju:surroundings field="$eju['field']" canvas="map_canvas" }
        {$field.hidden}
        {/eju:surroundings}
    </div>
</div>
<div class="tjlp_list">
    <h3> <a href="#" class="af-head"> <span class="left">推荐房源</span>
        <div class="clear"></div>
    </a> </h3>
    <ul class="clearfloat">
        {eju:arclist channelid='12' c='1' orderby='new' row='4' id="field"}
        <li>
            <a href="{$field.arcurl}">
                <div class="tjlp_list_img"> <img src="{$field.litpic}" alt="{$field.title}"> </div>
                <div class="tjlp_list_cont">
                    <p class="tjlp_list_head">{$field.title}</p>
                    <p class="tjlp_list_area">{$field.room}室{$field.living_room}厅{$field.toilet}卫</p>
                    <p class="tjlp_list_jg"><em>{$field.total_price}万</em></p>
                    <p class="tjlp_list_area">
                        {eju:volist name="$field.characteristic" id="vo"}
                        <span class="tjlp_list_tag intr-title-ts">{$vo}</span>
                        {/eju:volist}
                    </p>
                </div>
            </a>
        </li>
        {/eju:arclist}
    </ul>
</div>
<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default " id="">
    <ul class="am-navbar-nav am-cf am-avg-sm-4">
        <li>
            <a class="tg_tel_phone" href="tel:{$eju.field.saleman.saleman_mobile}">电话咨询</a>
        </li>
        <li style="border-right: 1px solid #fff;border-left: 1px solid #fff;">
            <a href="#" data-am-modal="{target:'#af-user-yy'}"> <span class="am-icon-bus" style="display: inline-block"></span>
                <span class="am-navbar-label" data-text="24小时接送机，住宿安排，专车看房，全程免费" style="display: inline-block;font-size: 15px;">预约看房</span>
            </a>
        </li>
        <li>
            <a href="http://wpa.qq.com/msgrd?v=3&uin={$eju.field.saleman.saleman_qq}&site=qq&menu=yes"> <span class="am-icon-comment-o" style="display: inline-block"></span>
                <span class="am-navbar-label" style="display: inline-block;font-size: 15px;">在线咨询</span>
            </a>
        </li>
    </ul>
</div>
<div class="am-modal am-modal-prompt" tabindex="-1" id="af-user-yy">
    <div class="am-modal-dialog" style="width: 100%;height: 40%;">
        {eju:form formid="1" success="closemodal"}
        <form method="post" id="{$field.form_name}" action="{$field.action}" onsubmit="{$field.submit}">
            <div class="am-modal-hd">预约看房 </div>
            <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="" style="top: 4px;right: 4px;position: absolute">×</a>
            <p class="am-modal-text">24小时接送机，住宿安排，专车看房，全程免费</p>
            <input type="text" class="input-text" id="{$field.attr_1}" name="{$field.attr_1}" placeholder="{$field.itemname_1}" >
            <button type="submit" id="yuyue_btn_sub" class="am-btn am-btn-warning af-yyzx">免费预约</button>
            <p class="am-modal-zy">*我们将严格保密您的个人信息，请您放心留下联系方式</p>
            {$field.hidden}
        </form>
        <script>
            function closemodal(){
                $(".layui-layer-loading1").hide();
                $(".am-modal,.am-dimmer").hide();
                $("body").removeClass("am-dimmer-active");
            }
        </script>
        {/eju:form}
    </div>
</div>
<script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak={:config('global.baidu_map_ak')}"></script>
<script>
    $(function() {
        var hxli = $(".lp-detail-huxing ul li");
        var hxul = $(".lp-detail-huxing ul");

        function hidehx() {
            hxli.hide();
            hxli.slice(0, 6).css("display", "flex");
        }
        if (hxli.length <= 6) {
            $(".hx_more_btn").hide();
            hxul.removeClass("af-hixing-list");
        } else {
            hidehx();
        }
        $(".hx_more_btn").click(function() {
            hxul.toggleClass("af-hixing-list");
            if (hxul.hasClass("af-hixing-list")) {
                $(this).text("查看更多");
                hidehx();
            } else {
                $(this).text("收回更多");
                hxli.css("display", "flex");
            }
        });
        $(".yhsq_m5 a").click(function() {
            $(".am-modal-hd,#yuyue_btn_sub").text($(".yhsq_m5 a").text());
            $(".am-modal-dialog #type").val(3);
            $(".am-modal-text").text($(this).attr("data-text"));
        });
        $(".am-navbar-label").click(function() {
            $(".am-modal-hd,#yuyue_btn_sub").text($(".am-navbar-label").eq(1).text());
            $(".am-modal-dialog #type").val(1);
            $(".am-modal-text").text($(this).attr("data-text"));
        });
        $(".tg_jj,.jj_callme").click(function() {
            $(".am-modal-hd,#yuyue_btn_sub").text($(this).text());
            $(".am-modal-text").text($(this).attr("data-text"));
            $(".am-modal-dialog #type").val(5);
        });

        function complate(result) {
            if (result.status == 1) {
                layer.msg(result.msg, {
                    icon: 1
                });
                setTimeout(function() {
                    //$(".layui-layer-loading1").hide();
                    //$(".am-modal,.am-dimmer").hide();
                    location.reload();
                }, 1500);
            } else {
                layer.msg(result.msg, {
                    icon: 2
                });
            }
        }
    });
    var lng = "{$eju.field.lng}";
    var lat = "{$eju.field.lat}";
    var panoramaService = new BMap.PanoramaService();
    panoramaService.getPanoramaByLocation(new BMap.Point(lng, lat), function(data){
        if (data == null) {
            console.log('no data');
            $("#diyurl_off").show();
            return;
        }else{
            $("#diyurl_on").show();
        }
    });
</script>
</body>
</html>
